<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="Insesoft.BusinessEntities.SolicitudCotizacion,Insesoft.BusinessEntities" table="SolicitudCotizacion">

    <id name="Id" column="Id" type="Int32" unsaved-value="0">
      <generator class="native"/>
    </id>
    <many-to-one name="Empresa" column="EmpId" class="Insesoft.BusinessEntities.Empresa,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <many-to-one name="Cliente" column="ClienteId" class="Insesoft.BusinessEntities.Cliente,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <many-to-one name="Usuario" column="UsuarioId" class="Insesoft.BusinessEntities.Usuario,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <many-to-one name="Vendedor" column="VendedorId" class="Insesoft.BusinessEntities.Vendedor,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <many-to-one name="Material" column="MaterialId" class="Insesoft.BusinessEntities.Material,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <many-to-one name="Linea" column="LineaId" class="Insesoft.BusinessEntities.Linea,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <property column="Fecha" type="DateTime" name="Fecha" />
    <many-to-one name="TipoProducto" column="TipoProductoId" class="Insesoft.BusinessEntities.TipoProducto,Insesoft.BusinessEntities" lazy="false" fetch="join"/>
    <property column="Producto" type="String" name="Producto" length="100" />
    <property column="ProductoBase" type="Decimal" name="ProductoBase" />
    <property column="ProductoAltura" type="Decimal" name="ProductoAltura" />
    <property column="ProductoFondo" type="Decimal" name="ProductoFondo" />
    <property column="MaterialBase" type="Decimal" name="MaterialBase" />
    <property column="MaterialAltura" type="Decimal" name="MaterialAltura" />
    <property column="MaterialFondo" type="Decimal" name="MaterialFondo" />
    <property column="Tintas1Cara" type="Int32" name="Tintas1Cara" />
    <property column="Tintas2Cara" type="Int32" name="Tintas2Cara" />
    <property column="Cuatricromia" type="Boolean" name="Cuatricromia" />
    <property column="Troquel" type="Boolean" name="Troquel" />
    <property column="Despiece" type="Boolean" name="Despiece" />
    <property column="Cantidades" type="String" name="Cantidades" length="100" />
    <property column="Observaciones" type="String" name="Observaciones" length="500" />
    <property column="Rendimiento" type="Decimal" name="Rendimiento" />
    <property column="Montaje" type="Decimal" name="Montaje" />
    <property column="Cubrimiento" type="Decimal" name="Cubrimiento" />
    <property column="CotizacionId" type="Int32" name="CotizacionId" />
    <property column="Aplicada" type="Boolean" name="Aplicada" not-null="true" />

  </class>
</hibernate-mapping>
